package com.bitnei.battery.examples;

import com.bitnei.battery.bean.dataBean.scrap.VehScrapInfo;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: wang
 * @Date: 2019/12/9 10:48
 * @Version 1.0
 * Description: 实验车辆报废
 */
public class VehScrapExample {

    public static void main(String[] args){
        //请求地址
        String url = "http://127.0.0.1:8999/bitnei/v1.0/battery/vehScrapInfo";

        //组装数据
        List<VehScrapInfo> scrapInfoList = mockScrap();
        //调用接口
        ApiUtilExample.callApi(url,scrapInfoList);
    }


    /**
     * 模拟实验车辆报废数据
     * @return
     */
    private static List<VehScrapInfo> mockScrap(){
        List<VehScrapInfo> list = new ArrayList<>();
        VehScrapInfo vehScrapInfo = new VehScrapInfo();
        vehScrapInfo.setVin("LSGJR52U8GS11A004");
        vehScrapInfo.setScrapTime("2018-04-10");
        list.add(vehScrapInfo);
        return list;
    }
}
